package com.hk.service.sys;

import java.util.List;

import com.hk.commons.HqlFilter;
import com.hk.commons.entity.Department;


public interface IDepartment {

	/** 根据id获实体 */
	public Department findById(Long id);
	/** 添加 **/
	public Long add(Department model);

	/** 新增模块，如果模块已存在则更新 */
	public void update(Department department);

	/** 删除 */
	public Department delete(Long id);
	
	/** 分页获取 */
	public List<Department> find(int pageNum, int pageSize);
	
	public List<Department> findByFilter(HqlFilter hqlFilter);
	
	public List<Department> findByFilter(HqlFilter hqlFilter,int pageNum, int pageSize);
	
	public Long countByFilter(HqlFilter hqlFilter);
}
